﻿using System.ComponentModel.DataAnnotations;

namespace B.S.DataBase.Production.Domain
{/// <summary>
 /// 物料清单主表
 /// </summary>
    public class MaterialListModel
    {
            /// <summary>
            /// 主键
            /// </summary>
            [Key]
            public int MaterialListId { get; set; }
            /// <summary>
            /// 物料清单主题
            /// </summary>
            public string Title { get; set; }

            /// <summary>
            /// 物料清单编号（保存后自动生成）
            /// </summary>
            public string Code { get; set; }

            /// <summary>
            /// 制单人员
            /// </summary>
            public string CreatedBy { get; set; }

            /// <summary>
            /// 备注
            /// </summary>
            public string Remark { get; set; }

            /// <summary>
            /// 产品名称
            /// </summary>
            public string Name { get; set; }

            /// <summary>
            /// 产品编码
            /// </summary>
            public string ProductCode { get; set; }

            /// <summary>
            /// 规格型号
            /// </summary>
            public string Specification { get; set; }

            /// <summary>
            /// 单位
            /// </summary>
            public string Unit { get; set; }

            /// <summary>
            /// 生产数量
            /// </summary>
            public double Quantity { get; set; }

            /// <summary>
            /// 产品角色（自制/采购/外协）
            /// </summary>
            public string ProductRole { get; set; }

            /// <summary>
            /// 工艺流程
            /// </summary>
            public string ProcessFlow { get; set; }

            /// <summary>
            /// 耗损率百分比
            /// </summary>
            public double DefectRate { get; set; }
            // /// <summary>
            ///// 子件
            ///// </summary>
            //public List<SubComponentModel> SubComponents { get; set; } = new();

        
    }

        


    
}
